package com.xuchaotong.service.impl;

import com.xuchaotong.dao.EmployeeMapper;
import com.xuchaotong.entity.Employee;
import com.xuchaotong.service.BookService;
import com.xuchaotong.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private BookService bookService;

    @Autowired
    private EmployeeMapper employeeMapper;

    @Transactional
    public void saveEmployee(Employee employee) {
        employeeMapper.insert(employee);
    }
}
